package com.ylr.send.common.enums;

import com.ylr.base.common.interfaces.BaseResultEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-06-15 17:12:30
 * className: SendResultEnum
 * version: 1.0
 * description:
 */
@Getter
@AllArgsConstructor
public enum SendResultEnum implements BaseResultEnum {

    MOBILE_PREFIX_LENGTH_FAIL(400, "手机号前缀长度错误，请确认。"),

    NOT_CHANNEL_FAIL(500, "短信渠道未找到"),
    SMS_PARAM_FAIL(500, "短信参数错误"),
    SMS_TEMPLATE_DISABLE_FAIL(500, "短信配置已停用")
    ;

    /**
     * 状态码
     */
    private final Integer code;

    /**
     * 消息
     */
    private final String msg;

    public Integer getCode() {
        return code;
    }


    public String getMsg() {
        return msg;
    }
}
